#define _CRT_SECURE_NO_WARNINGS 1
#include<stdio.h>
int main() {
	int arr[12] = { 31,1,19,5,3,56,24,18,9,15,25,33 };
	int m = 0, i = 0, j = 0;
	for (i = 0; i < 11; i++){
		for (j = 0; j < 11 - i; j++){
			if (arr[j] > arr[j + 1]) {
				m = arr[j];
				arr[j] = arr[j + 1];
				arr[j+1] = m;
			}
		}
		
	}
	for (i = 0; i < 12; i++) {
		printf("%d ", arr[i]);
	}
	return 0;

}